<?php

namespace App\Admin\Actions\Href;

use Encore\Admin\Actions\RowAction;

class ImHrefAction extends RowAction
{
    public $name = '聊天';

    public int $receive = 0;

    public int $send = 0;

    public function __construct(int $send, int $receive)
    {
        parent::__construct();
        $this->receive = $receive;
        $this->send = $send;
    }

    public function href(): string
    {
        return '/admin/im?send=' . $this->send . '&receive=' . $this->receive;
    }
}
